package com.quick.develop.form.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 表单字段
 *
 * @author Tioo 1906559468@qq.com
 * @since 1.0.0 2023-09-24
 */
@Data
@Schema(description = "表单字段")
public class GenDynamicFormFieldVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    private Integer id;

    @Schema(description = "表单ID")
    private Integer formId;

    @Schema(description = "字段Key")
    private String fieldKey;

    @Schema(description = "字段名称")
    private String fieldNameZh;

    @Schema(description = "字段英文名称")
    private String fieldNameCn;

    @Schema(description = "栅格")
    private Integer span;

    @Schema(description = "组件类型")
    private String type;

    @Schema(description = "默认值")
    private String defaultValue;

    @Schema(description = "占位提示符")
    private String placeholder;

    @Schema(description = "是否隐藏")
    private Boolean hidden;

    @Schema(description = "是否禁用")
    private Boolean disabled;

    @Schema(description = "是否只读")
    private Boolean readonly;

    @Schema(description = "是否清空")
    private Boolean clearable;

    @Schema(description = "是否必填")
    private Boolean required;

    @Schema(description = "校验消息")
    private String validMessage;

    @Schema(description = "扩展信息")
    private String attributes;

    @Schema(description = "更改事件")
    private String changeEvent;

    @Schema(description = "输入事件")
    private String inputEvent;

    @Schema(description = "失去焦点")
    private String blurEvent;

    @Schema(description = "获得焦点")
    private String focusEvent;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "标签")
    private String label;

    @Schema(description = "别名")
    private String alias;

    @Schema(description = "触发类型")
    private String trigger;

    @Schema(description = "依赖")
    private String depend;

    @Schema(description = "是否转换变量")
    private Boolean isVariable;

    @Schema(description = "宽度")
    private String width;

    @Schema(description = "字典键")
    private String dictKey;
}